<div class="form" style="padding-left: 10px; ">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'register-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); 

$default_ref_id=isset(Yii::app()->request->cookies['ref_id']->value) ? 
(Yii::app()->request->cookies['ref_id']->value) : '1';

?>

	
	<h1 style="text-align: center;">Đăng ký thành viên</h1>
       
        Bạn cần phải có tài khoản Liberty Reserver trước rồi mới đăng ký được. Cách đăng ký
        tài khoản LR bạn có thể <a href="http://vietlode.com/huongdan/LibertyReserve.html">click vào đây để xem</a>
        <br/>
        <br/>
        <div class="row">
            <?php echo $form->labelEx($model, 'user_name'); ?><br/>
            <?php echo $form->textField($model, 'user_name'); ?><br/>
            <?php echo $form->error($model, 'user_name'); ?>
        </div>
        <div class="row" >
            <?php echo $form->labelEx($model, 'email'); ?><br/>
            <?php echo $form->textField($model, 'email'); ?><br/>
            <?php echo $form->error($model, 'email'); ?>
        </div>

        <div class="row" >
            <?php echo $form->labelEx($model, 'lr_acc'); ?><br/>
            <?php echo $form->textField($model, 'lr_acc'); ?><br/>
            <?php echo $form->error($model, 'lr_acc'); ?>
        </div>
        
        <div class="row" >
            <?php echo $form->labelEx($model, 'phone'); ?><br/>
            <?php echo $form->textField($model, 'phone'); ?><br/>
            <?php echo $form->error($model, 'phone'); ?>
        </div>        
        
        
        <div class="row">
            <?php echo $form->labelEx($model, 'password'); ?><br/>
            <?php echo $form->passwordField($model, 'password'); ?><br/>
            <?php echo $form->error($model, 'password'); ?>
        </div>
        <div class="row" >
            <?php echo $form->labelEx($model, 'confirm_password'); ?><br/>
            <?php echo $form->passwordField($model, 'confirm_password'); ?><br/>
            <?php echo $form->error($model, 'confirm_password'); ?>
        </div>
        <br/>
        <br/>
        <div class="row">
            <?php echo $form->labelEx($model, 'ref_id').' : '; ?>
            <?php echo $default_ref_id; ?><br/>
            <?php echo $form->error($model, 'ref_id'); ?>
        </div>        
        
       
	<?php echo $form->labelEx($model, 'verifyCode'); ?>
        <?php $this->widget('application.extensions.recaptcha.EReCaptcha', 
           array('model'=>$model, 'attribute'=>'verifyCode',
                 'theme'=>'red', 'language'=>'es_ES', 
                 'publicKey'=>'6LdNNc4SAAAAAN8RshKLyDfJmRvq7ar016oLZXJw')) ?>
        <?php echo $form->error($model, 'verifyCode'); ?>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Đăng ký !'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
